import * as XLSX from 'xlsx';
export function getExcel(signList: any) {

  const worksheet = XLSX.utils.json_to_sheet(signList);
  const workbook = XLSX.utils.book_new();

  XLSX.utils.book_append_sheet(workbook, worksheet, 'sheetName');

  const wbout = XLSX.write(workbook, { bookType: 'xlsx', type: 'array' });
  const blob = new Blob([wbout], { type: 'application/octet-stream' });
  const url = URL.createObjectURL(blob);

  const link = document.createElement('a');
  link.href = url;
  link.setAttribute('download', 'data.xlsx');
  link.click();

  URL.revokeObjectURL(url);
};
